import serviceAction from "../../../../enum/service-action";
import serviceStatus from "../../../../enum/service-status";
import { getDataSet } from "../../../../utils/utils";
import behavior from "../behavior";
Component({
  behaviors:[behavior],
  /**
   * 组件的属性列表
   */
  properties: {
  

  },

  /**
   * 组件的初始数据
   */
  data: {
    serviceStatusEnum: serviceStatus,
    serviceActionEnum:serviceAction

  },

  /**
   * 组件的方法列表
   */
  methods: {

    // 取消服务
    handleUpdateStatus(event){
      const action = getDataSet(event,'action')
      this.triggerEvent('update',{action})
    },

    // 修改服务
    handleEditService(event){
      this.triggerEvent('edit')
    },

  }
})
